﻿using UnityEngine;
using System.Collections;

namespace Room
{
    public class RCAIGateBase
    {
        public RCAIGate controller;

        public void Enter()
        {
            this.OnEnter();
        }

        public void Enter(object param)
        {
            this.OnEnter(param);
        }

        public void Tick()
        {
            this.OnTick();
        }

        public void Leave()
        {
            this.OnLeave();
        }

        protected virtual void OnEnter()
        {
        }

        protected virtual void OnEnter(object param)
        {

        }

        protected virtual void OnLeave()
        { }

        protected virtual void OnTick()
        { }

        public void ShowEffect(Transform obj)
        {
            obj.gameObject.SetActive(true);
        }

        public void HideEffect(Transform obj)
        {
            obj.gameObject.SetActive(false);
        }
    }
}